// JavaScript Document

//List all mboxes on the page
mboxFactoryDefault.getMboxes().each(function(i,e) { 
	console.log(i); 
});


//List all mbox names on the page
mboxFactoryDefault.getMboxes().each(function(i,e) { 
	console.log(i.g); 
});

mboxFactoryDefault.getMboxes().each(function(i,e) { 
	console.log(i.getName()); //use this method
});


//List all mboxes-div elements on the page
mboxFactoryDefault.getMboxes().each(function(i,e) { 
	console.log(i.Fb); //i.Tb seems to do the same?!
	$(i.Fb).css('border','1px solid red'); //apply css
});

//Hide particular mbox on match
mboxFactoryDefault.getMboxes().each(function(i,e) { 
	if (i.getName()=="PersHomeTileCentrecapsule_H_I1242629872327_BOInfoCampaignDetails_MB") {
		i.hide(); 
	}
});

//Show original mbox content particular mbox on match
mboxFactoryDefault.getMboxes().each(function(i,e) { 
	if (i.getName()=="PersHomeTileCentrecapsule_H_I1242629872327_BOInfoCampaignDetails_MB") {
		console.log(i.getDefaultDiv());  //original div html
		console.log(i.getDiv());  //T&T loaded div html
		//$(i.getDiv()).html($(i.getDefaultDiv()).html());
		//or
		i.hide();
	}
});

